package org.fenixsoft.jvm.chapter10.lombok;

import lombok.*;

@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class LombokJavaBean {
    @Getter
    @Setter
    private int age = 10;

    @Setter(AccessLevel.PROTECTED)
    private String name;

    public void convert(@NonNull String address){
        String[] arr = address.split("|");
        for (String str : arr) {
            System.out.println(str);
        }
    }
}
